package com.example.safeassistan.home.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.safeassistan.R;
import com.example.safeassistan.hiddendanger.model.DepartMentAllModel;
import com.example.safeassistan.hiddendanger.model.HiddenDangerTypeModel;

import java.util.List;

public class HiddenDangerTypeAdapter extends BaseQuickAdapter<HiddenDangerTypeModel.ResultDTO,BaseViewHolder> {
    public HiddenDangerTypeAdapter(@Nullable List<HiddenDangerTypeModel.ResultDTO> data) {
        super(R.layout.item_common_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HiddenDangerTypeModel.ResultDTO item) {
        helper.setText(R.id.tvText,item.getNum());
    }


}
